
if($('#editAddPayFormButton').length>0){
	$('#editAddPayFormButton').bind('click',function(){
		$.ajax({
			type:'post',
            url :'/index.php?c=pay&a=test',
			data:{
				    shopNumber:$('#shopNumber').val(),
					shopName:$('#shopName').val(),
				    payment:$('#payment').val(),
				    paymentName:$('#paymentName').val(),
				    reserveFund:$('#reserveFund').val(),
			     	paymentCard:$('#paymentCard').val()
			},
			success:function(data){
				var json_data = eval('('+ data +')');
				if(json_data['error']){
					alert('操作成功HELLO');
					window.location.reload(true);
				}
				else
				{
					alert('操作失败MYGOD');
					return false;
				}

			}
		})
	})
}
